
var tool = require("../../pages/Tools/tool.js");

const app = getApp()

Page({
  
  data: {
    text0: 'touch me',
    text1: 'go to indexTwo',
    text2: 1,
    arr: [
      { id: 0, value: 'a' },
      { id: 1, value: 'b' },
      { id: 2, value: 'c' },
    ],
    personList:[
      {name: "张三", age: "22"},
      {name: "李四", age: "25"}
    ]
  },
  onLoad: function (options) {

  },

  clickText0: function(x) {
    this.setData({
      text0: this.data.text0 + ', fuck you'
    });
  },

  beforeClickText1: function(x) {
    console.log('beforeClickText1');
  },

  clickText1: function(x) {
    console.log(x.currentTarget.dataset);
    console.log(x.touches);
    tool.sayHello("indexTwo");
    wx.navigateTo({
      url: '../../pages/indexTwo/indexTwo',
    })
  }

 
})
